#ifndef _UNI_HAL_PWM_H_
#define _UNI_HAL_PWM_H_

#include <types.h>

/************************************************************************************
pwm_num: timer num from 1~8
freq_hz: frequency of output waveform, must be < pclk = 45.056M
duty_cycle: should be within 100, i.e. if 50% duty cycle wanted, then duty_cycle = 50
*************************************************************************************/

extern int uni_hal_pwm_start(u8 pwm_num, u32 freq_hz, u32 duty_cycle);

extern void uni_hal_pwm_disable(u8 pwm_num);
#endif